# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-math-base85
pkgver=0.5
pkgrel=1
pkgdesc="Perl/CPAN Module Math::Base85"
arch=("any")
url="https://search.cpan.org/dist/Math-Base85"
license=("GPL" "PerlArtistic")
source=("https://cpan.metacpan.org/authors/id/P/PT/PTC/Math-Base85-$pkgver.tar.gz")
sha256sums=('0b05f7fb650a8797b392d8ea90f2e72bfb8d08505c9a2e0b955dfd45a72a34e5')

build() {
  cd "$srcdir"/Math-Base85-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Math-Base85-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
